package com.ruoyi.wms.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 货主订单编号规则配置对象 wms_owner_order_number_rule
 * 
 * @author ruoyi
 * @date 2024-01-01
 */
public class WmsOwnerOrderNumberRule extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 规则ID */
    private Long ruleId;

    /** 租户ID */
    @Excel(name = "租户ID")
    private String tenantId;

    /** 货主ID */
    @Excel(name = "货主ID")
    private Long ownerId;

    /** 订单类型 */
    @Excel(name = "订单类型")
    private String orderType;

    /** 规则名称 */
    @Excel(name = "规则名称")
    private String ruleName;

    /** 编号前缀 */
    @Excel(name = "编号前缀")
    private String prefix;

    /** 编号后缀 */
    @Excel(name = "编号后缀")
    private String suffix;

    /** 日期格式 */
    @Excel(name = "日期格式")
    private String dateFormat;

    /** 流水号长度 */
    @Excel(name = "流水号长度")
    private Integer serialLength;

    /** 流水号起始值 */
    @Excel(name = "流水号起始值")
    private Integer serialStart;

    /** 分隔符 */
    @Excel(name = "分隔符")
    private String division;

    /** 规则模板 */
    @Excel(name = "规则模板")
    private String ruleTemplate;

    /** 是否启用 */
    @Excel(name = "是否启用")
    private Integer enabled;

    public void setRuleId(Long ruleId) 
    {
        this.ruleId = ruleId;
    }

    public Long getRuleId() 
    {
        return ruleId;
    }
    public void setTenantId(String tenantId) 
    {
        this.tenantId = tenantId;
    }

    public String getTenantId() 
    {
        return tenantId;
    }
    public void setOwnerId(Long ownerId) 
    {
        this.ownerId = ownerId;
    }

    public Long getOwnerId() 
    {
        return ownerId;
    }
    public void setOrderType(String orderType) 
    {
        this.orderType = orderType;
    }

    public String getOrderType() 
    {
        return orderType;
    }
    public void setRuleName(String ruleName) 
    {
        this.ruleName = ruleName;
    }

    public String getRuleName() 
    {
        return ruleName;
    }
    public void setPrefix(String prefix) 
    {
        this.prefix = prefix;
    }

    public String getPrefix() 
    {
        return prefix;
    }
    public void setSuffix(String suffix) 
    {
        this.suffix = suffix;
    }

    public String getSuffix() 
    {
        return suffix;
    }
    public void setDateFormat(String dateFormat) 
    {
        this.dateFormat = dateFormat;
    }

    public String getDateFormat() 
    {
        return dateFormat;
    }
    public void setSerialLength(Integer serialLength) 
    {
        this.serialLength = serialLength;
    }

    public Integer getSerialLength() 
    {
        return serialLength;
    }
    public void setSerialStart(Integer serialStart) 
    {
        this.serialStart = serialStart;
    }

    public Integer getSerialStart() 
    {
        return serialStart;
    }
    public void setDivision(String division) 
    {
        this.division = division;
    }

    public String getDivision() 
    {
        return division;
    }
    public void setRuleTemplate(String ruleTemplate) 
    {
        this.ruleTemplate = ruleTemplate;
    }

    public String getRuleTemplate() 
    {
        return ruleTemplate;
    }
    public void setEnabled(Integer enabled) 
    {
        this.enabled = enabled;
    }

    public Integer getEnabled() 
    {
        return enabled;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("ruleId", getRuleId())
            .append("tenantId", getTenantId())
            .append("ownerId", getOwnerId())
            .append("orderType", getOrderType())
            .append("ruleName", getRuleName())
            .append("prefix", getPrefix())
            .append("suffix", getSuffix())
            .append("dateFormat", getDateFormat())
            .append("serialLength", getSerialLength())
            .append("serialStart", getSerialStart())
            .append("division", getDivision())
            .append("ruleTemplate", getRuleTemplate())
            .append("enabled", getEnabled())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }
}